<h5 class="hide" style="display:none"><?php echo __l('Admin side links'); ?></h5>
<ul class="admin-links clearfix">
	<?php $class = ($this->request->params['controller'] == 'users' && $this->request->params['action'] == 'admin_stats') ? 'active' : null; ?>
	<li class="grid_3 <?php echo $class;?>">
		<span class="amenu-left">
			<span class="amenu-right">
				<span class="menu-center home">
					<?php echo __l('Dashboard'); ?>
				</span>
			</span>
		</span>
		<div class="admin-sub-block">
		<div class="l-curve-top l-curve-top-in">
					<div class="r-curve-top r-curve-top-in">
						<div class="top-bg top-bg-in"></div>
					</div>
				</div>
               <div class="shad-bg-lft shad-bg-lft-in">
					<div class="shad-bg-rgt shad-bg-rgt-in">
						<div class="shad-bg clearfix">
						<ul>
							<li>
								<h4><?php echo __l('Dashboard'); ?></h4>
								<ul>
						       <li> <?php echo $this->Html->link(__l('Site Stats'), array('controller' => 'users', 'action' => 'stats'),array('title' => __l('Site Stats'))); ?> </li>	                  	</ul>
							</li>
						</ul>
					</div>
				</div>
			</div>
            <div class="l-curve-bot l-curve-bot-in">
					<div class="r-curve-bot r-curve-bot-in">
						<div class="bot-bg bot-bg-in"></div>
					</div>
	      </div>
		</div>
	</li>
  <?php $controller = array('users', 'user_profiles', 'user_logins', 'messages');
  $class = ( in_array( $this->params['controller'], $controller ) && !in_array($this->request->params['action'], array('admin_stats')) ) ? 'active' : null; ?>
   <li class="grid_3 <?php echo $class;?>">
		<span class="amenu-left">
			<span class="amenu-right">
				<span class="menu-center users">
                     <?php echo __l('Users'); ?>
                 </span>
            </span>
         </span>
		<div class="admin-sub-block">
		<div class="l-curve-top l-curve-top-in">
					<div class="r-curve-top r-curve-top-in">
						<div class="top-bg top-bg-in"></div>
					</div>
				</div>
               <div class="shad-bg-lft shad-bg-lft-in">
					<div class="shad-bg-rgt shad-bg-rgt-in">
						<div class="shad-bg clearfix">
						<ul>
							<li>
								<h4><?php echo __l('Users'); ?></h4>
                        		  <ul>
                        			<?php $class = (($this->request->params['controller'] == 'users' && $this->request->params['action'] == 'admin_index') || ($this->request->params['controller'] == 'users' && $this->request->params['action'] == 'admin_add') || ($this->request->params['controller'] == 'user_profiles' && $this->request->params['action'] == 'edit')) ? ' class="active"' : null; ?>
                        			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Users'), array('controller' => 'users', 'action' => 'index'),array('title' => __l('Users'))); ?></li>
                        			<?php $class = ($this->request->params['controller'] == 'user_logins') ? ' class="active"' : null; ?>
                        			<li <?php echo $class;?>><?php echo $this->Html->link(__l('User Logins'), array('controller' => 'user_logins', 'action' => 'index'),array('title' => __l('User Logins'))); ?></li>
                        			<?php $class = ($this->request->params['controller'] == 'users' && $this->request->params['action'] == 'admin_send_mail') ? ' class="active"' : null; ?>
                        			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Send Email to Users'), array('controller' => 'users', 'action' => 'send_mail'),array('title' => __l('Send Email to Users'))); ?></li>
                        			<?php $class = ($this->request->params['controller'] == 'messages' && $this->request->params['action'] == 'admin_index') ? ' class="active"' : null; ?>
                        			<li <?php echo $class;?>><?php echo $this->Html->link(__l('User messages'), array('controller' => 'messages', 'action' => 'index'),array('title' => __l('User messages'))); ?></li>
                               	</ul>
 							</li>
						</ul>
					</div>
				</div>
			</div>
            <div class="l-curve-bot l-curve-bot-in">
					<div class="r-curve-bot r-curve-bot-in">
						<div class="bot-bg bot-bg-in"></div>
					</div>
		</div>
		</div>
	</li>
 <?php $controller = array('projects', 'project_funds', 'blogs', 'blog_comments','project_comments', 'project_ratings', 'project_flags', 'project_followers', 'project_views'); $class = ( in_array( $this->request->params['controller'], $controller ) ) ? 'active' : null; ?>
	<li class="grid_3 <?php echo $class;?>">
		<span class="amenu-left">
			<span class="amenu-right">
				<span class="menu-center sightings">
				    <?php echo __l('Projects'); ?>
				</span>
			</span>
		</span>
		<div class="admin-sub-block">
		<div class="l-curve-top l-curve-top-in">
					<div class="r-curve-top r-curve-top-in">
						<div class="top-bg top-bg-in"></div>
					</div>
				</div>
               <div class="shad-bg-lft shad-bg-lft-in">
					<div class="shad-bg-rgt shad-bg-rgt-in">
						<div class="shad-bg clearfix">
						<ul>
							<li>
									<h4><?php echo __l('Projects'); ?></h4>
		<ul>
			<?php $class = ($this->request->params['controller'] == 'projects' && ($this->request->params['action'] == 'admin_index' || $this->request->params['action'] == 'admin_edit')) ? ' class="active"' : null; ?>
			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Projects'), array('controller' => 'projects', 'action' => 'index'),array('title' => __l('Projects'))); ?></li>
			<?php $class = ($this->request->params['controller'] == 'projects' && $this->request->params['action'] == 'admin_add') ? ' class="active"' : null; ?>
			<?php if(Configure::read('Project.is_enable_idea')) :?>
			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Add Idea'), array('controller' => 'projects', 'action' => 'add'),array('title' => __l('Add Idea'))); ?></li>
			<?php else: ?>
			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Add Project'), array('controller' => 'projects', 'action' => 'add'),array('title' => __l('Add Project'))); ?></li>
			<?php endif; ?>
			<?php $class = ($this->request->params['controller'] == 'project_funds') ? ' class="active"' : null; ?>
			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Project Funds'), array('controller' => 'project_funds', 'action' => 'index'),array('title' => __l('Project Funds'))); ?></li>
			<?php $class = ($this->request->params['controller'] == 'blogs' && $this->request->params['action'] == 'admin_index' || $this->request->params['action'] == 'admin_edit') ? ' class="active"' : null; ?>
			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Project Updates'), array('controller' => 'blogs', 'action' => 'index'),array('title' => __l('Project Updates'))); ?></li>
			<?php  if (Configure::read('Project.is_project_update_comment_enabled')): ?>
				<?php $class = ($this->request->params['controller'] == 'blog_comments') ? ' class="active"' : null; ?>
				<li <?php echo $class;?>><?php echo $this->Html->link(__l('Project Update Comments'), array('controller' => 'blog_comments', 'action' => 'index'),array('title' => __l('Project Update Comments'))); ?></li>
			<?php endif; ?>
			<?php  if (Configure::read('Project.is_project_comment_enabled')): ?>
				<?php  if(Configure::read('Project.is_fb_project_comment_enabled')==0): ?>
				<?php $class = ($this->request->params['controller'] == 'project_comments') ? ' class="active"' : null; ?>
				<li <?php echo $class;?>><?php echo $this->Html->link(__l('Project Comments'), array('controller' => 'project_comments', 'action' => 'index'),array('title' => __l('Project Comments'))); ?></li>
				<?php endif; ?>
			<?php endif; ?>
			<?php if (Configure::read('Project.is_enable_idea')): ?>
				<?php $class = ($this->request->params['controller'] == 'project_ratings') ? ' class="active"' : null; ?>
				<li <?php echo $class;?>><?php echo $this->Html->link(__l('Project Votings'), array('controller' => 'project_ratings', 'action' => 'index'),array('title' => __l('Project Votings'))); ?></li>
			<?php endif; ?>
			<?php  if (Configure::read('Project.is_project_follower_enabled')): ?>
				<?php $class = ($this->request->params['controller'] == 'project_followers') ? ' class="active"' : null; ?>
				<li <?php echo $class;?>><?php echo $this->Html->link(__l('Project Followers'), array('controller' => 'project_followers', 'action' => 'index'),array('title' => __l('Project Followers'))); ?></li>
			<?php endif; ?>
			<?php $class = ($this->request->params['controller'] == 'project_views') ? ' class="active"' : null; ?>
			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Project Views'), array('controller' => 'project_views', 'action' => 'index'),array('title' => __l('Project Views'))); ?></li>
			<?php if(Configure::read('Project.is_project_flag_enabled')): ?>
				<?php $class = ($this->request->params['controller'] == 'project_flags') ? ' class="active"' : null; ?>
				<li <?php echo $class;?>><?php echo $this->Html->link(__l('Project Flags'), array('controller' => 'project_flags', 'action' => 'index'),array('title' => __l('Project Flags'))); ?></li>
			<?php endif; ?>
			</ul>
										</li>
						</ul>
					</div>
				</div>
			</div>
            <div class="l-curve-bot l-curve-bot-in">
					<div class="r-curve-bot r-curve-bot-in">
						<div class="bot-bg bot-bg-in"></div>
					</div>
		</div>
		</div>
	</li>
	<?php if(Configure::read('affiliate.is_enabled') == 1):?>
    <?php $controller = array('affiliates','affiliate_requests','affiliate_cash_withdrawals','affiliate_types'); $class = ( in_array( $this->request->params['controller'], $controller ) ) ? 'active' : null; ?>
		<li class="grid_3 <?php echo $class;?>">
			<?php echo $this->element('affiliate_admin_sidebar', array('config' => 'sec'));?>
		</li>
	<?php endif; ?>
  <?php $controller = array('transactions', 'payment_gateways', 'user_paypal_connections', 'paypal_accounts', 'user_cash_withdrawals'  ); $class = ( in_array( $this->request->params['controller'], $controller ) ) ? 'active' : null; ?>
	<li class="grid_3 <?php echo $class;?>">
		<span class="amenu-left">
			<span class="amenu-right">
				<span class="menu-center guides">
					<?php echo __l('Payments'); ?>
				</span>
			</span>
		</span>
		<div class="admin-sub-block">
		<div class="l-curve-top l-curve-top-in">
					<div class="r-curve-top r-curve-top-in">
						<div class="top-bg top-bg-in"></div>
					</div>
				</div>
               <div class="shad-bg-lft shad-bg-lft-in">
					<div class="shad-bg-rgt shad-bg-rgt-in">
						<div class="shad-bg clearfix">
						<ul>
							<li>
		<h4><?php echo __l('Payments'); ?></h4>
		<ul class="admin-sub-links">
			<?php $class = ($this->request->params['controller'] == 'transactions') ? ' class="active"' : null; ?>
			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Transactions'), array('controller' => 'transactions', 'action' => 'index'),array('title' => __l('Transactions'))); ?></li>
			<?php $class = ($this->request->params['controller'] == 'payment_gateways') ? ' class="active"' : null; ?>
			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Payment Gateways'), array('controller' => 'payment_gateways', 'action' => 'index'),array('title' => __l('Payment Gateways'))); ?></li>
			<?php $class = ($this->request->params['controller'] == 'paypal_accounts' && $this->request->params['action'] == 'admin_index') ? ' class="active"' : null; ?>
			<li <?php echo $class;?>><?php echo $this->Html->link(__l('PayPal Accounts'), array('controller' => 'paypal_accounts', 'action' => 'index'),array('title' => __l('PayPal Accounts'))); ?></li>
			<?php if($is_wallet_enabled == 1){ ?>
			    <?php $class = ($this->params['controller'] == 'user_cash_withdrawals') ? ' class="active"' : null; ?>
	       <li <?php echo $class;?>><?php echo $this->Html->link(__l('Withdraw Fund Requests'), array('controller' => 'user_cash_withdrawals', 'action' => 'index'),array('title' => __l('Withdraw Fund Request'))); ?></li>
           <?php } ?>
    	</ul>
									</li>
						</ul>
					</div>
				</div>
			</div>
            <div class="l-curve-bot l-curve-bot-in">
					<div class="r-curve-bot r-curve-bot-in">
						<div class="bot-bg bot-bg-in"></div>
					</div>
		</div>
		</div>
	</li>
 <?php $controller = array('settings'); $class = ( in_array( $this->request->params['controller'], $controller ) ) ? 'active' : null; ?>
	<li class="grid_3 masters setting-masters-block masters-block <?php echo $class;?>">
		<span class="amenu-left">
			<span class="amenu-right">
				<span class="menu-center settings1">
					<?php echo __l('Settings'); ?>
				</span>
			</span>
		</span>
		<div class="admin-sub-block">
		<div class="l-curve-top l-curve-top-in">
					<div class="r-curve-top r-curve-top-in">
						<div class="top-bg top-bg-in"></div>
					</div>
				</div>
               <div class="shad-bg-lft shad-bg-lft-in">
					<div class="shad-bg-rgt shad-bg-rgt-in">
						<div class="shad-bg clearfix">
						<ul>
								 <li class="setting-overview setting-overview1 clearfix"><?php echo $this->Html->link(__l('Overview'), array('controller' => 'settings', 'action' => 'index'),array('title' => __l('Overview'), 'class' => 'setting-overview')); ?></li>
							<li>
		<h4><?php echo __l('Settings'); ?></h4> 

        <ul>
            <li class="admin-sub-links-left">                        
        <ul>
        		<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 1){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>
                <li <?php echo $class; ?>><?php echo $this->Html->link(__l('System'), array('controller' => 'settings', 'action' => 'edit', 1),array('title' => __l('System'))); ?></li>
        		<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 28){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                
                <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Developments'), array('controller' => 'settings', 'action' => 'edit', 28),array('title' => __l('Developments'))); ?></li>
        		<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 34){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                
                <li <?php echo $class; ?>><?php echo $this->Html->link(__l('SEO'), array('controller' => 'settings', 'action' => 'edit', 34),array('title' => __l('SEO'))); ?></li>
				<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 30){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                
                <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Regional, Currency & Language'), array('controller' => 'settings', 'action' => 'edit', 30),array('title' => __l('Regional, Currency & Language'))); ?></li>
                <?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 3){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                
                <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Account'), array('controller' => 'settings', 'action' => 'edit', 3),array('title' => __l('Account'))); ?></li>
        		<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 11){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                                
                <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Project'), array('controller' => 'settings', 'action' => 'edit', 11),array('title' => __l('Project'))); ?></li>  
                <?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 19){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>								
				<li <?php echo $class; ?>><?php echo $this->Html->link(__l('Project Owner'), array('controller' => 'settings', 'action' => 'edit', 19),array('title' => __l('Project Owner'))); ?></li> 

				<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 20){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                                                       <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Backer'), array('controller' => 'settings', 'action' => 'edit', 20),array('title' => __l('Backer'))); ?></li> 
				<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 18){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                                                       <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Revenue'), array('controller' => 'settings', 'action' => 'edit', 18),array('title' => __l('Revenue'))); ?></li>  
	    </ul>  
            </li>

            <li class="admin-sub-links-right">
        <ul>
		        <?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 60){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                                                    
			<li <?php echo $class; ?>><?php echo $this->Html->link(__l('Reward'), array('controller' => 'settings', 'action' => 'edit', 60),array('title' => __l('Reward'))); ?></li> 
			<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 21){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                                                       <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Affiliate'), array('controller' => 'settings', 'action' => 'edit', 21),array('title' => __l('Affiliate'))); ?></li>  
				
				<?php if($is_wallet_enabled == 1){ ?>
				<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 52){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                                                       <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Payment'), array('controller' => 'settings', 'action' => 'edit', 52),array('title' => __l('Payment'))); ?></li>
        		<?php } ?>

                 

        		  		<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 13){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                                                       <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Messages'), array('controller' => 'settings', 'action' => 'edit', 13),array('title' => __l('Messages'))); ?></li>
				<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 14){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                                                       <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Suspicious Words Detector'), array('controller' => 'settings', 'action' => 'edit', 14),array('title' => __l('Suspicious Words Detector'))); ?></li>
				<?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 38){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                                                        <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Third Party API'), array('controller' => 'settings', 'action' => 'edit', 38),array('title' => __l('Third Party API'))); ?></li> 
				  <?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 25){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                                                       <li <?php echo $class; ?>><?php echo $this->Html->link(__l('CDN'), array('controller' => 'settings', 'action' => 'edit', 25),array('title' => __l('CDN'))); ?></li>
        		 <?php 
					if($this->request->params['controller'] == 'settings' && $this->request->params['action'] == 'admin_edit' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] == 55){
 						$class = 'class="active"';
					}else{
						$class = null;
					}
				?>                                                                                                       <li <?php echo $class; ?>><?php echo $this->Html->link(__l('Module Manager'), array('controller' => 'settings', 'action' => 'edit', 55),array('title' => __l('Module Manager'))); ?></li> 
        </ul>    
            </li>
        </ul>
									</li>
						</ul>
					</div>
				</div>
			</div>
            <div class="l-curve-bot l-curve-bot-in">
					<div class="r-curve-bot r-curve-bot-in">
						<div class="bot-bg bot-bg-in"></div>
					</div>
		</div>
		</div>
	</li>
<?php $controller = array('cities', 'translations', 'states', 'transaction_types', 'project_statuses', 'countries', 'email_templates', 'languages', 'pages', 'project_categories', 'project_flag_categories','ips' ); $class = ( in_array( $this->request->params['controller'], $controller ) ) ? 'active' : null; ?>
<li class="grid_3 masters setting-masters-block <?php echo $class;?>">
		<span class="amenu-left">
			<span class="amenu-right">
				<span class="menu-center masters">
					<?php echo __l('Masters'); ?>
				</span>
			</span>
		</span>
		<div class="admin-sub-block">
		<div class="l-curve-top l-curve-top-in">
					<div class="r-curve-top r-curve-top-in">
						<div class="top-bg top-bg-in"></div>
					</div>
				</div>
               <div class="shad-bg-lft shad-bg-lft-in">
					<div class="shad-bg-rgt shad-bg-rgt-in">
						<div class="shad-bg clearfix">
						<ul class="admin-sub-links clearfix">
			<li>
			   <div class="page-info master-page-info"><?php echo __l('Warning! Please edit with caution.');?></div>
			<ul>
              <li class="admin-sub-links-left">
                <ul>
                  <li>
                    <h4><?php echo __l('Regional');?></h4>
                    <ul>
        		 	<?php $class = ($this->request->params['controller'] == 'cities') ? ' class="active"' : null; ?>
        			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Cities'), array('controller' => 'cities', 'action' => 'index'),array('title' => __l('Cities'))); ?></li>
        			<?php $class = ($this->request->params['controller'] == 'countries') ? ' class="active"' : null; ?>
        			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Countries'), array('controller' => 'countries', 'action' => 'index'),array('title' => __l('Countries'))); ?></li>
	          		<?php $class = ($this->request->params['controller'] == 'states') ? ' class="active"' : null; ?>
		         	<li <?php echo $class;?>><?php echo $this->Html->link(__l('States'), array('controller' => 'states', 'action' => 'index'),array('title' => __l('States'))); ?></li>
                    </ul>
                  </li>
                  <li>
                    <h4><?php echo __l('Languages');?></h4>
                    <ul>
	         		<?php $class = ($this->request->params['controller'] == 'languages') ? ' class="active"' : null; ?>
			        <li <?php echo $class;?>><?php echo $this->Html->link(__l('Languages'), array('controller' => 'languages', 'action' => 'index'),array('title' => __l('Languages'))); ?></li>
		         	<?php $class = ($this->request->params['controller'] == 'translations') ? ' class="active"' : null; ?>
		        	<li <?php echo $class;?>><?php echo $this->Html->link(__l('Translations'), array('controller' => 'translations', 'action' => 'index'),array('title' => __l('Translations'))); ?></li>
                    </ul>
                  </li>
                   <li>
                    <h4><?php echo __l('Static pages');?></h4>
                    <ul>
                	<?php $class = (($this->request->params['controller'] == 'pages' && empty($this->request->params['pass'])) || ($this->request->params['controller'] == 'pages' && !empty($this->request->params['pass']['0']) && $this->request->params['pass']['0'] !='tools')) ? ' class="active"' : null; ?>
		        	<li <?php echo $class;?>><?php echo $this->Html->link(__l('Pages'), array('controller' => 'pages', 'action' => 'index'),array('title' => __l('Pages'))); ?></li>
		           </ul>
                  </li>
                </ul>
              </li>
			  </ul>
			   </li>
              <li class="admin-sub-links-right">
                <ul>
				   <li>
                    <h4><?php echo __l('Email');?></h4>
                    <ul>
                	<?php $class = ($this->request->params['controller'] == 'email_templates') ? ' class="active"' : null; ?>
		           	<li <?php echo $class;?>><?php echo $this->Html->link(__l('Email Templates'), array('controller' => 'email_templates', 'action' => 'index'),array('title' => __l('Email Templates'))); ?></li>
                     </ul>
                     </li>
                     <li>
                    <h4><?php echo __l('Others');?></h4>
                    <ul>
                 	<?php $class = ($this->request->params['controller'] == 'project_categories') ? ' class="active"' : null; ?>
        			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Project Categories'), array('controller' => 'project_categories', 'action' => 'index'),array('title' => __l('Project Categories'))); ?></li>
        			<?php if(Configure::read('Project.is_project_flag_enabled')): ?>
        				<?php $class = ($this->request->params['controller'] == 'project_flag_categories') ? ' class="active"' : null; ?>
        				<li <?php echo $class;?>><?php echo $this->Html->link(__l('Project Flag Categories'), array('controller' => 'project_flag_categories', 'action' => 'index'),array('title' => __l('Project Flag Categories'))); ?></li>
        			<?php endif; ?>
        			<?php $class = ($this->request->params['controller'] == 'project_statuses') ? ' class="active"' : null; ?>
        			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Project Status'), array('controller' => 'project_statuses', 'action' => 'index'),array('title' => __l('Project Status'))); ?></li>
                	<?php $class = ($this->request->params['controller'] == 'transaction_types') ? ' class="active"' : null; ?>
        			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Transaction Types'), array('controller' => 'transaction_types', 'action' => 'index'),array('title' => __l('Transaction Types'))); ?></li>
                	<?php $class = ($this->request->params['controller'] == 'ips') ? ' class="active"' : null; ?>
        			<li <?php echo $class;?>><?php echo $this->Html->link(__l('IPs'), array('controller' => 'ips', 'action' => 'index'),array('title' => __l('IPs'))); ?></li>
         	        </ul>
                  </li>
                </ul>
              </li>
             </ul>
     		</div>
				</div>
			</div>
            <div class="l-curve-bot l-curve-bot-in">
					<div class="r-curve-bot r-curve-bot-in">
						<div class="bot-bg bot-bg-in"></div>
					</div>
		</div>
		</div>
	</li>
</ul>